//
//  AIGirlEmptyView.swift
//  AIGirl
//
//  Created by Rae on 2024/1/24.
//

import UIKit

class AIGirlEmptyView: UIView {

    private lazy var iconImageView = c_make_ex(UIImageView.self)
        .image("AIGirl_Empty").mode(.scaleAspectFill).end()
    private lazy var titleLabel = c_make_ex(UILabel.self)
        .color(.white).font(17.font_medium).alignment(.center)
        .text("The current list is empty~").end()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        subviews{
            iconImageView
            titleLabel
        }
        
        iconImageView.top(0).size(80).centerHorizontally()
        titleLabel.centerHorizontally()
        titleLabel.Top == iconImageView.Bottom + 35
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
